home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Unstuffers / Other Compression / MacGzip 0.21-src-c.sit / macgzip_021-src / macos / !Posix / sys_dir.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-20  |  385 b   |  27 lines

  1. /* $Id: $ */
  2.  
  3. /*
  4.  * "Dir.h" for the Macintosh.
  5.  * Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
  6.  */
  7.  
  8. #pragma once
  9.  
  10. #ifdef THINK_C
  11. #include <stdio.h>
  12. #endif /* THINK_C */
  13.  
  14. typedef struct {
  15.     long dirid;
  16.     int nextfile;
  17. } DIR;
  18.  
  19. struct direct {
  20.     char d_name[FILENAME_MAX];
  21. };
  22.  
  23. DIR *opendir(char *);
  24. struct dirent *readdir(DIR *);
  25. int closedir(DIR *);
  26. void rewinddir(DIR*);
  27.